<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml"
      xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>办理离职</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--插件样式-->
    <link rel="stylesheet" href="/dist/plugins/select2/select2.min.css">
    <link href="/dist/plugins/ztree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/dist/plugins/webuploader-0.1.5/webuploader.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=8e9c5bb62">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=66b457d6">

    <style type="text/css">
        td div {
            float: left;
            text-align: center;
            height: 100%;
        }

        .fj {
            cursor: pointer;
            margin-left: 6px;
        }

        .webuploader-pick {
            position: relative;
            display: inline-block;
            cursor: pointer;
            background: none;
            padding: 0;
            color: #74adf2;
            width: 100%;
            text-align: left;
        }

        .rightBorder {
            border-left: 1px solid #e8e8e9;
        }

        .table-detail {
            width: 560px;
            margin: 0 auto;
        }

        .entryTitle {
            font-weight: bold;
            width: 80px;
            background-color: #F5F5F5;
        }
        td  .lookFj{
            color:#74adf2;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            position: relative;
            cursor: pointer;
            background: url(/dist/img/upload_normal.gif) no-repeat 6px center;
            padding-left: 24px !important;
            text-align: left;
        }
        .delfile{
            position: absolute;
            right: 0;
            top: 0;
            width: 15px;
            height: 100%;
            line-height: 24px;
            text-align: center;
            font-size: 14px;
            border-radius: 50%;
            background: #fff;
            z-index: 1111111;
            color: #bbb;
            cursor: pointer;
        }
        .delfile:hover{
            color:red;
        }
        .fujian {
            display: inline-block;
            cursor: pointer;
            padding-left: 38px;
            background: url(/dist/img/fujian.png) no-repeat 20px center;
            color: #2a8cec;
        }
        td textarea,td input{
            color:#2a8cec;
        }
    </style>
</head>
<body>
<iframe id="ifAttach" style="display:none"></iframe>
<section class="content" id="app">
        <div class="pull-left" style="width: 200px;">
            <select  class="form-control " style="height: 25px; font-size: 12px; line-height: 25px; padding-top: 0px; padding-bottom: 0px; padding-left: 6px;">
                <option value="" v-for="(item,i) in week">{{item.weekName+"  "+item.time}}</option>
            </select>
        </div>

    <input type="button" value="添加" @click="save()" class="btn oaBtn btn-sm pull-right" >
</section>
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=0b5caf39"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=fff81c63"></script>
<script type="text/javascript" src="/dist/plugins/select2/select2.min.js"></script>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script type="text/javascript" src="/dist/plugins/My97DatePicker/WdatePicker.js"></script>
<script src="/dist/plugins/webuploader-0.1.5/webuploader.min.js"></script>
<script type="text/javascript" src="/dist/plugins/ztree/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="/dist/plugins/ztree/js/jquery.ztree.exhide-3.5.js"></script>
<script type="text/javascript">
    var api = frameElement.api, W = api.opener;
    var app = new Vue({
        el: '#app',
        data: {
            time:"",
            week:""
        },
        methods: {
            save: function () {
                var self = this;
                this.user.user={id: $.wyui.page.urlParams.id,
                    jobState:"1"}
                $.wyui.postMethod(urlConfig.system.user.savaUserQuit, self.user, function (r) {
                    alert("保存成功");
                    api.close();
                });
            },
            getWeek: function () {
                var that = this;
                var week = [];
                for (var i = 0; i < 6; i++) {
                    var Stamp = new Date();
                    var num = 1 + i;
                    Stamp.setDate(Stamp.getDate() + num);
                    var mvar = '';
                    if ((Stamp.getMonth() + 1) > 10) {
                        mvar = (Stamp.getMonth() + 1);
                    } else {
                        mvar = '0' + (Stamp.getMonth() + 1);
                    }
                    var dvar = '';
                    if (Stamp.getDate() < 10) {
                        dvar = '0' + Stamp.getDate();
                    } else {
                        dvar = Stamp.getDate() + '';
                    }
                    var weekName=""
                    if(i==0){weekName="星期一"}
                    if(i==1){weekName="星期二"}
                    if(i==2){weekName="星期三"}
                    if(i==3){weekName="星期四"}
                    if(i==4){weekName="星期五"}
                    if(i==5){weekName="星期六"}
                    var obj={};
                    obj.time = Stamp.getFullYear() + '-' + mvar + '-' + dvar;
                    obj.weekName=weekName;
                    week[i]=obj;
                }
                that.week = week;
            }
        },
        mounted: function () {
            var that = this;
            that.getWeek();
            console.log(that.week);
            //初始化上传控件
        }
    });
</script>
</body>
</html>